﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Threading;

namespace SilverlightDatabase
{
    public class LockedThreadInfo
    {
        public Thread Thread { get; private set; }
        public string StackTrace { get; private set; }
        public DatabaseSession Session { get; set; }

        public LockedThreadInfo(Thread thread, string stackTrace)
        {
            this.Thread = thread;
            this.StackTrace = stackTrace;
        }

        public int ManagedThreadId
        {
            get
            {
                return this.Thread.ManagedThreadId;
            }
        }

        public string ThreadName
        {
            get
            {
                return this.Thread.Name;
            }
        }
    }
}
